#include "GUIComponent.h"

CGGUIComponent::CGGUIComponent(void)
{
	m_pParent=NULL;
}
CGGUIComponent::CGGUIComponent(CGGUIComponent* pPareant)
{
	m_pParent=pPareant;
}
CGGUIComponent::~CGGUIComponent(void)
{
}

bool CGGUIComponent::CheckMouseEvent(const CGMouseArgs &SMouseArgs)
{
	if (SMouseArgs.iX<m_Quad.v[0].iX||
		SMouseArgs.iX>m_Quad.v[1].iX||
		SMouseArgs.iY<m_Quad.v[0].iY||
		SMouseArgs.iY>m_Quad.v[2].iY)
	{
		return false;
	}
	return true;
}